81. Araxis Merge File Comparison Report

Produced by Araxis Merge on 2023-07-12 04:42:38 +0000. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

81.1 Files compared

#LocationFileLast Modified
1Porto v4.0.5/Theme Files/Porto Theme/app/code/Smartwave/Dailydeals/Block/Adminhtml/DailydealEdit.php2018-03-14 04:34:08 +0000
2Porto v4.0.6/Theme Files/Porto Theme/app/code/Smartwave/Dailydeals/Block/Adminhtml/DailydealEdit.php2018-03-14 04:34:08 +0000

81.2 Comparison summary

DescriptionBetween
Files 1 and 2
Text BlocksLines
Unchanged1148
Changed00
Inserted00
Removed00

81.3 Comparison options

WhitespaceConsecutive whitespace is treated as a single space
Character caseDifferences in character case are significant
Line endingsDifferences in line endings (CR and LF characters) are ignored
CR/LF charactersNot shown in the comparison detail
Active line-pairing rules

81.4 Active regular expressions

No regular expressions were active.

81.5 Comparison detail

1 <?php 1 <?php
2 namespace Smartwave\Dailydeals\Block\Adminhtml\Dailydeal; 2 namespace Smartwave\Dailydeals\Block\Adminhtml\Dailydeal;
3  3 
4 class Edit extends \Magento\Backend\Block\Widget\Form\Container 4 class Edit extends \Magento\Backend\Block\Widget\Form\Container
5 { 5 {
6     /** 6     /**
7      * Core registry 7      * Core registry
8      * 8      *
9      * @var \Magento\Framework\Registry 9      * @var \Magento\Framework\Registry
10      */ 10      */
11     protected $coreRegistry; 11     protected $coreRegistry;
12  12 
13     /** 13     /**
14      * constructor 14      * constructor
15      * 15      *
16      * @param \Magento\Framework\Registry $coreRegistry 16      * @param \Magento\Framework\Registry $coreRegistry
17      * @param \Magento\Backend\Block\Widget\Context $context 17      * @param \Magento\Backend\Block\Widget\Context $context
18      * @param array $data 18      * @param array $data
19      */ 19      */
20     public function __construct( 20     public function __construct(
21         \Magento\Framework\Registry $coreRegistry, 21         \Magento\Framework\Registry $coreRegistry,
22         \Magento\Backend\Block\Widget\Context $context, 22         \Magento\Backend\Block\Widget\Context $context,
23         array $data = [] 23         array $data = []
24     ) { 24     ) {
25      25     
26         $this->coreRegistry = $coreRegistry; 26         $this->coreRegistry = $coreRegistry;
27         parent::__construct($context, $data); 27         parent::__construct($context, $data);
28     } 28     }
29  29 
30     /** 30     /**
31      * Initialize Dailydeal edit block 31      * Initialize Dailydeal edit block
32      * 32      *
33      * @return void 33      * @return void
34      */ 34      */
35     protected function _construct() 35     protected function _construct()
36     { 36     {
37         $this->_objectId = 'dailydeal_id'; 37         $this->_objectId = 'dailydeal_id';
38         $this->_blockGroup = 'Smartwave_Dailydeals'; 38         $this->_blockGroup = 'Smartwave_Dailydeals';
39         $this->_controller = 'adminhtml_dailydeal'; 39         $this->_controller = 'adminhtml_dailydeal';
40         parent::_construct(); 40         parent::_construct();
41         $this->buttonList->update('save', 'label', __('Save Dailydeal')); 41         $this->buttonList->update('save', 'label', __('Save Dailydeal'));
42         $this->buttonList->add( 42         $this->buttonList->add(
43             'save-and-continue', 43             'save-and-continue',
44             [ 44             [
45                 'label' => __('Save and Continue Edit'), 45                 'label' => __('Save and Continue Edit'),
46                 'class' => 'save', 46                 'class' => 'save',
47                 'data_attribute' => [ 47                 'data_attribute' => [
48                     'mage-init' => [ 48                     'mage-init' => [
49                         'button' => [ 49                         'button' => [
50                             'event' => 'saveAndContinueEdit', 50                             'event' => 'saveAndContinueEdit',
51                             'target' => '#edit_form' 51                             'target' => '#edit_form'
52                         ] 52                         ]
53                     ] 53                     ]
54                 ] 54                 ]
55             ], 55             ],
56             -100 56             -100
57         ); 57         );
58         $this->buttonList->update('delete', 'label', __('Delete Dailydeal')); 58         $this->buttonList->update('delete', 'label', __('Delete Dailydeal'));
59     } 59     }
60     /** 60     /**
61      * Retrieve text for header element depending on loaded Dailydeal 61      * Retrieve text for header element depending on loaded Dailydeal
62      * 62      *
63      * @return string 63      * @return string
64      */ 64      */
65     public function getHeaderText() 65     public function getHeaderText()
66     { 66     {
67         /** @var \Smartwave\Dailydeals\Model\Dailydeal $dailydeal */ 67         /** @var \Smartwave\Dailydeals\Model\Dailydeal $dailydeal */
68         $dailydeal = $this->coreRegistry->registry('sw_dailydeals_dailydeal'); 68         $dailydeal = $this->coreRegistry->registry('sw_dailydeals_dailydeal');
69         if ($dailydeal->getId()) { 69         if ($dailydeal->getId()) {
70             return __("Edit Dailydeal '%1'", $this->escapeHtml($dailydeal->getSw_product_sku())); 70             return __("Edit Dailydeal '%1'", $this->escapeHtml($dailydeal->getSw_product_sku()));
71         } 71         }
72         return __('New Dailydeal'); 72         return __('New Dailydeal');
73     } 73     }
74 } 74 }